package com.customer.crm.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.customer.crm.system.pojo.SystemRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SystemRoleMapper  extends BaseMapper<SystemRole> {

    /**
     * 根据用户id查询角色信息
     * @param id
     * @return
     */
    List<SystemRole> findByUserId(String id);

    List<SystemRole> page(@Param("page") Long page, @Param("rows") Long rows);
}
